{% extends "artist-base.html" %}
{% load thumbnail %}

{% block title %}{{ artist.title }}{% endblock %}

{% block content %}

{{ artist.full_text|safe }}
<img src="{% thumbnail artist.picture 300x300 %}" alt="{{ artist.title }}" />
<h3>Members:</h3>
<ul>
  {% for membership in artist.bandmembership_set.all %}
  <li>
    {% if membership.member.bio %}
    <a href="{{ membership.member.get_absolute_url }}">{{ membership.member.name }}</a>
    {% else %}
    {{ membership.member.name }}
    {% endif %}
    {% if membership.instruments %}
    &ndash; {{ membership.instruments }}
    {% endif %}
    {% if membership.start_year %}
    ({{ membership.start_year }} -
    {% if membership.end_year %}
    {{ membership.end_year }}{% endif %})
    {% endif %}
  </li>
  {% endfor %}
</ul>
{% endblock %}
